﻿using Currency.IServices.User;
using System.Threading.Tasks;
using User.IServices.View;
using Currency.Infra.IRepository;

namespace Currency.Services.User
{
    /// <summary>
	/// UserInfoServices
	/// </summary>
    public class UserInfoServices /*: IUserInfoServices*/
    {
        //private IRepository<UserInfoView> _userDal;

        //public UserInfoServices(IRepository<UserInfoView> userDal)
        //{
        //    this._userDal = userDal;
        //}

        /// <summary>
		/// 用户注册
		/// </summary>
		/// <param name="userInfo">用户</param>
		/// <returns>主键</returns>
        public async Task<int> Register(UserInfoView userInfo)
        {
            //await _userDal.Add(userInfo);
            return 1;
        }
    }
}
